//
//  ViewController.m
//  HMWeChat
//
//  Created by apple on 2017/5/8.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSLog(@"%@", NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).lastObject);
    
    //用户登录
    [[HMXMPPManager sharedManager] loginWithJID:[XMPPJID jidWithUser:@"wangwu" domain:@"im.itcast.cn" resource:@"iOS"] andPassword:@"123"];
    
    //用户注册
//    [[HMXMPPManager sharedManager] registerWithJID:[XMPPJID jidWithUser:@"wangwu" domain:@"im.itcast.cn" resource:@"iOS"] andPassword:@"123"];
}





@end
